#ifndef TIMECONTROLLER_H
#define TIMECONTROLLER_H

#include "../socket_lib/ClientSocket.h"

class TimeController : public ClientSocket
{
	public:
		//用来初始化报文、时间计数器和连接地址
		TimeController (const string h, const string m, const int t) : host(h), msg(m), time_interval(t), time_counter(0) {}
		void ConnObjVR ();
		bool OnTime ();
		void MsgSend ();
	private:
		const string host;
		const string msg;
		int time_interval;
		int time_counter;
};

void* InstSendTimer (void*);

#endif
